home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / toolboxsas.lha / Toolbox / lib / rex / Source.h < prev   
Encoding:
Text File  |  1995-02-15  |  981 b   |  32 lines

  1. $@ # ifndef xy$Source
  2. $@ # define xy$Source
  3.  
  4. /* $Id: Source.h,v 1.7 1992/08/07 15:29:41 grosch rel $ */
  5.  
  6. $@ extern int  $_BeginSource(char * FileName);
  7.  
  8.    /*
  9. $@       $_BeginSource is called from the scanner to open files.
  10.       If not called input is read form standard input.
  11.    */
  12.  
  13. $@ extern int  $_GetLine(int File, char * Buffer, int Size);
  14.  
  15.    /*
  16. $@       $_GetLine is called to fill a buffer starting at address 'Buffer'
  17.       with a block of maximal 'Size' characters. Lines are terminated
  18. $@       by newline characters (ASCII = 0xa). $_GetLine returns the number
  19.       of characters transferred. Reasonable block sizes are between 128
  20.       and 2048 or the length of a line. Smaller block sizes -
  21.       especially block size 1 - will drastically slow down the scanner.
  22.    */
  23.  
  24. $@ extern void $_CloseSource(int File);
  25.  
  26.    /*
  27. $@       $_CloseSource is called from the scanner at end of file respectively
  28.       at end of input. It can be used to close files.
  29.    */
  30.  
  31. # endif
  32.